package com.xyz.testng.groups;

import org.testng.annotations.AfterGroups;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeGroups;
import org.testng.annotations.Test;

/**
 * @author: shanghongfan
 * @Date: 2020/9/1 23:33
 * @Description:
 */
public class GroupsOnMethod {

    @Test(groups = "server")
    public void test1() {
        System.out.println("服务端组的测试方法111111111111111");
    }


    @Test(groups = "server")
    public void test2() {
        System.out.println("服务端组的测试方法222222222222");
    }

    @Test(groups = "client")
    public void test3() {
        System.out.println("客户端组的测试方法3333333333333");
    }

    @Test(groups = "client")
    public void test4() {
        System.out.println("客户端组的测试方法4444444444444444444444444");
    }

    @BeforeGroups("server")
    public void beforeGroupsOnServer() {
        System.out.println("这是服务端组运行之前运行的方法");
    }

    @AfterGroups("server")
    public void afterGroupsOnServer() {
        System.out.println("这是服务端组运行之后运行的方法");
    }


}
